package cloud.daodao.storm.common.security.model.rsa;

import cloud.daodao.storm.common.serialize.Serializer;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

/**
 * @author DaoDao
 */
@Schema(title = "RsaVerifyParam", description = "RSA 验签")
@Data
public class RsaVerifyParam implements Serializer {

    @Schema(title = "key", description = "公钥验签", example = "1")
    @NotEmpty
    @Size(min = 1, max = 2048)
    private String key;

    @Schema(title = "data", description = "数据", example = "1")
    @NotEmpty
    @Size(min = 1, max = 102400)
    private String data;

    @Schema(title = "sign", description = "签名", example = "1")
    @NotEmpty
    @Size(min = 1, max = 1024)
    private String sign;

}
